import React from "react";

import "../../../css/bd/bd_bottom.less"

export default class BdBottomLeft extends React.Component{
    constructor(props){
        super(props);
        console.log(props)
        this.state={
            url:props.data.url,
            title:props.data.title,
            img:props.data.img,
            textp:props.data.textp
        }
    }
    render(){
        
        return (
            <div className={this.state.img?`bd_bottombox`: `bd_bottombox  bd_bottomsmall`}>
                <img src={this.state.url} className={this.state.img?`boximg`:`boximg smallimg`}/>
                <p className={`boxp smallp`}>{this.state.title} </p>
            </div>
        )
    }
}